#ifndef RUNLENGTHDECODER_H
#define RUNLENGTHDECODER_H

#include <stdio.h>
#include "BufferedByteStream.h"


class RunLengthDecoder: public BufferedByteStream
{
public:
	RunLengthDecoder();
	~RunLengthDecoder();

	virtual unsigned int Read(void *data, unsigned int size);

protected:
	

private:
	int ReadNextByte();

	int zeroCounter;
	int value;
};

#endif // RUNLENGTHDECODER_H